package org.apnprovider;
import java.util.Collection;

/**
 * Interface to implement iOS device storages
 * 
 * @author Alexey Palamarchuk (slonnik@gmail.com)
 *
 */
public interface DeviceStorage {

	/**
	 * Provide devices assigned to the one provider key
	 * @param key - provider key
	 * @return devices
	 */
	public Collection<Device> findDevicesByProviderKey(String key);
	
	
	/**
	 * Add device into storage
	 * @param key	- provider key
	 * @param device - device to be added
	 */
	public void addDevice(String key, Device device);
}
